<template>
    <div class="addAddress">
        <header>
            <span @click="GoBack()"><van-icon name="arrow-left" /></span>
            <p>添加收货地址</p>
            <span></span>
        </header>
        <section>
            <ul>
                <li>收货人 <input type="text" placeholder="收货人姓名"></li>
                <li>联系方式 <input type="text" placeholder="联系人手机号"></li>
                <li>所在地区 <input type="text" placeholder="请选择收货地区"></li>
                <li>详细地址 <input type="text" placeholder="街道详细地址"></li>
                <li>设置为默认地址 <input type="checkbox"></li>
                <li><button>保存</button></li>
            </ul>
        </section>
    </div>
</template>
<script>
    export default {
        data(){
            return{

            }
        },
        methods:{
            GoBack(){
                history.go(-1)
            }
        }
    }
</script>
<style lang="less" scoped>
    .addAddress{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        header{
            width: 100%;
            height: 1rem;
            display: flex;
            border-bottom: 1px solid #efefef;
            span{
                width: 1rem;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.4rem;
            }
            p{
                flex: 1;
                text-align: center;
                line-height: 1rem;
                font-size: 0.32rem;
            }
        }
        section{
            flex: 1;
            overflow: auto;
            ul{
                width: 100%;
                li{
                    width: 100%;
                    height: 1rem;
                    line-height: 1rem;
                    padding: 0 0.2rem;
                    box-sizing: border-box;
                    border-bottom: 1px solid #efefef;
                    input{
                        height: 0.6rem;
                        margin-top: 0.2rem;
                        padding-left: 0.2rem;
                        box-sizing: border-box;
                    }
                }
                li:nth-child(5){
                    width: 100%;
                    display: flex;
                    input{
                        margin-right: 1rem;
                        width: 0.4rem;
                        height: 0.4rem;
                        margin-top: 0.3rem;
                    }
                }
                li:last-child{
                    border: none;
                    padding: 0.2rem;
                    box-sizing: border-box;
                    button{
                        width: 100%;
                        height: 100%;
                        background: #FDA208;
                        color: white;
                        border: none;
                        line-height: 0.6rem;
                        border-radius: 3px;
                    }
                }
            }
        }
    }
</style>